﻿using DadayunApi.Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace KhtApi.Model
{
    public class BomReport
    {
        public List<BomReportTpl> Results { get; set; }
    }

    public class BomReportTpl
    {
        public int RowNum { get; set; }
        public ReportDataObject DataObjs { get; set; }
        #region 表头
        [JsonProperty(PropertyName = "BOM单号", NullValueHandling = NullValueHandling.Ignore)]
        public string BomId { get; set; }

        [JsonProperty(PropertyName = "产品编码", NullValueHandling = NullValueHandling.Ignore)]
        public string PrdItemCode { get; set; }

        [JsonProperty(PropertyName = "产品名称", NullValueHandling = NullValueHandling.Ignore)]
        public string PrdName { get; set; }

        [JsonProperty(PropertyName = "产品型号", NullValueHandling = NullValueHandling.Ignore)]
        public string PrdModelNo { get; set; }

        [JsonProperty(PropertyName = "产品规格", NullValueHandling = NullValueHandling.Ignore)]
        public string PrdSpec { get; set; }

        [JsonProperty(PropertyName = "版本号", NullValueHandling = NullValueHandling.Ignore)]
        public double Version { get; set; }

        [JsonProperty(PropertyName = "产品来源", NullValueHandling = NullValueHandling.Ignore)]
        public string PrdOriginCn { get; set; }

        [JsonProperty(PropertyName = "BOM单位", NullValueHandling = NullValueHandling.Ignore)]
        public string BomUnit { get; set; }

        [JsonProperty(PropertyName = "生效日期", NullValueHandling = NullValueHandling.Ignore)]
        public DateTime AvailableDate { get; set; }

        [JsonProperty(PropertyName = "失效日期", NullValueHandling = NullValueHandling.Ignore)]
        public DateTime DiableDate { get; set; }

        [JsonProperty(PropertyName = "审核状态", NullValueHandling = NullValueHandling.Ignore)]
        public ECheckStatus CheckStatusCn { get; set; }


        [JsonProperty(PropertyName = "生效状态", NullValueHandling = NullValueHandling.Ignore)]
        public string AffectStatusCn { get; set; }
        #endregion

        #region 表身
        [JsonProperty(PropertyName = "物料编码", NullValueHandling = NullValueHandling.Ignore)]
        public string ItemCode { get; set; }

        [JsonProperty(PropertyName = "物料名称", NullValueHandling = NullValueHandling.Ignore)]
        public string ItemName { get; set; }

        [JsonProperty(PropertyName = "型号", NullValueHandling = NullValueHandling.Ignore)]
        public string ModelNo { get; set; }

        [JsonProperty(PropertyName = "规格", NullValueHandling = NullValueHandling.Ignore)]
        public string Spec { get; set; }

        [JsonProperty(PropertyName = "大类", NullValueHandling = NullValueHandling.Ignore)]
        public string Catagory1 { get; set; }

        [JsonProperty(PropertyName = "中类", NullValueHandling = NullValueHandling.Ignore)]
        public string Catagory2 { get; set; }

        [JsonProperty(PropertyName = "小类", NullValueHandling = NullValueHandling.Ignore)]
        public string Catagory3 { get; set; }

        [JsonProperty(PropertyName = "单位", NullValueHandling = NullValueHandling.Ignore)]
        public string Unit { get; set; }

        [JsonProperty(PropertyName = "数量", NullValueHandling = NullValueHandling.Ignore)]
        public double Qty { get; set; }


        [JsonProperty(PropertyName = "来源", NullValueHandling = NullValueHandling.Ignore)]
        public string OriginCn { get; set; }

        [JsonProperty(PropertyName = "说明", NullValueHandling = NullValueHandling.Ignore)]
        public string Note { get; set; }

        #endregion
    }
}
